package com.star.carservice.client.fragment;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import butterknife.OnClick;

import com.star.carservice.R;
import com.star.carservice.client.fragment.base.BaseFragment;

public class RegisterFragment extends BaseFragment {

	private final static String TAG = RegisterFragment.class.getSimpleName();

	@Override
	public String getLogTag() {
		return TAG;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);

		if (CacheViewIsNull()) {
			mCacheView = inflater.inflate(R.layout.frag_register, container,
					false);

			ButterKnife.inject(this, mCacheView);
			
			initView();
		}

		return mCacheView;
	}

	private void initView() {
		FragmentTransaction tran= getChildFragmentManager().beginTransaction();
		
		tran.replace(R.id.view_placeholder, new RegisterStep1Fragment());
		
		tran.commit();
	}
}
